package week9;

public class Car extends Vehicle implements IPower {
    private String carNumber;
    public  Car(){

    }
    public Car(String carNumber){

    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public Car (String brand, String color, String carNumber){
        super(brand,color);
        this.carNumber=carNumber;
    }

    public void run(){
        System.out.println("加油");
    }
    public void power(){
        System.out.println();
    }
}
